// @ts-nocheck

import { join } from 'node:path'

import swc from 'unplugin-swc'
import { defineConfig } from 'vitest/config'

export default defineConfig({
  test: {
    globals: true,
    root: __dirname,
    setupFiles: join(__dirname, './test/setup.ts')
  },
  plugins: [
    swc.vite({
      configFile: join(__dirname, './.swcrc'),
      module: { type: 'es6' },
      jsc: { target: 'es2021' }
    })
  ]
})
